package com.beamfield.dao.mixstation;

import com.beamfield.model.ConcreteOpening;
import com.beamfield.model.MixTzWorkorder;
import com.beamfield.modelVo.WorkOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MixTzWorkorderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MixTzWorkorder record);

    int insertSelective(MixTzWorkorder record);

    MixTzWorkorder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MixTzWorkorder record);

    int updateByPrimaryKey(MixTzWorkorder record);

    List<ConcreteOpening> getOpening(@Param("beamId") Long beamId);

    List<WorkOrderVo> selectPage(@Param("offset") Integer offset, @Param("limit") Integer limit, @Param("orderNo") String orderNo, @Param("depart") String depart, @Param("beamId") Long beamId, @Param("isProduct") Integer isProduct);

    Integer countPage(@Param("orderNo") String orderNo, @Param("depart") String depart,@Param("beamId") Long beamId,  @Param("isProduct") Integer isProduct);
}